<?php
require_once "../../resources/inc/dbconnect.php";
?>
<table style="vertical-align:text-top;">
<tr>
<td>
<?php
$word = $_GET['q1'];
$line = $_GET['q2'];
$sql = "SELECT id, api_name FROM apis";
$resultAPIs = @mysql_query($sql);
if(!$resultAPIs){
	DIE ('Failed to load API list');
}
while($api = mysql_fetch_array($resultAPIs)){
	if(!(stripos($api['api_name'], $word)===false) || !(stripos($line, $api['api_name'])=== false)){
		print $api['api_name'];
		print '<br/>';
	}
	
}
?>
</td>
</tr>
</table>
